# -*- coding: utf-8 -*-

"""
@Datetime: 2019/1/4
@Author: Zhang Yafei
"""
import queue

q = queue.Queue()

q.put('123')

val = q.get()
print(val)

try:
    val = q.get(timeout=10)
    print(val)
except queue.Empty:
    print('队列为空')

